<template>
    <div class="admin-layout">
        <SidebarView />
        <div class="content">
            <router-view></router-view>
        </div>
    </div>
</template>

<script setup>
import SidebarView from './SidebarView.vue';
</script>

<style scoped>
.admin-layout {
    display: flex;
    height: 100vh;
    background-color: var(--background-color);
}

.sidebar {
    width: 200px;
    background-color: #2d3a4b;
    color: white;
    padding: 1rem;
}

.content {
    flex: 1;
    padding: var(--padding-base);
    background-color: var(--background-color);
    border-left: 1px solid #ebebeb;
}

@media (max-width: 768px) {
    .admin-layout {
        flex-direction: column;
    }

    .content {
        padding: 1rem;
    }
}
</style>